import { ConfigRouterTypeEnum } from '@/enums/configRouterTypeEnum';
import { ShareTypeEnum } from '@/enums/shareEnum';

export interface MiniProgramConfigResult {
  defaultImgUrl: string
  id: number;
  indexImgUrl: string
  logo: string
  name: string
  officialAccounts: string
  posters: string
  privacyPolicy: string
  shareImgUrl: string
  shareTitle: string
  templateId: number;
  tenantId: number;
  userAgreement: string
  themeColor: string
  // 商城的APPID
  mallAppId: string
  // AI小程序的APPID
  aiAppId: string
  // 是否开启AI
  isEnableAi: number
  // AI智能体UUID
  aiBotUUID: string
}

export interface BannerResult {
  id: number;
  title: string;
  terminalType: number;
  bannerRegion: number;
  imgUrl: string;
  status: number;
  isLink: string;
  linkUrl: string;
  typeOptionsId: ConfigRouterTypeEnum;
  typeOptionsName: string;
  optionsId: number;
  optionsName: string;
  tenantId: number;
  informationCategoryList: InformationCategoryItem[];
  officialAccountsLink?: string
  appId?: string
}

export interface InformationCategoryItem {
  id: number;
  code: number;
  module: string;
  iconUrl: string;
  parentId: number;
  level: 1 | 2;
  children: string;
}

export interface HomeTabResult {
  id: number;
  name: string;
  iconUrl: string;
  iconSelectedUrl: string;
  typeOptionsId: ConfigRouterTypeEnum;
  typeOptionsName: string;
  optionsId: number;
  optionsName: string;
  linkUrl: string;
  sort: number;
  type: number;
  tenantId: number;
  informationCategoryList: InformationCategoryItem[];
  desc: string;
  shareType: ShareTypeEnum;
  officialAccountsLink?: string
  appId?: string
}

export interface NewsTabResult {
  id: number;
  optionsId: string;
  optionsName: string;
  sort: number;
  linkUrl: string;
  tenantId: number;
}
